/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package metodos;
import java.util.ArrayList;
/**
 *
 * @author DannyMarcel
 */
public class main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        ArrayList lista = new ArrayList();
        lista.add(3);
        lista.add("hola");
        lista.add(23.5);
        
        for(int i = 0;i<lista.size();i++){
            System.out.println(lista.get(i));
        }
                   
        ArrayList<Integer> lista2 = new ArrayList<Integer>();
        lista2.add(20);
        for(Integer i: lista2){
           System.out.println(i);
        }
        
        for(Object o : lista)
        {
            System.out.println(o);
        }
    }
    
}



//http://puntocomnoesunlenguaje.blogspot.com/2012/12/arraylist-en-java.html
//http://jarroba.com/arraylist-en-java-ejemplos/
